package section4;

public class forth {
	public static void main(String[] args) {
		int i;
		for(i=100;i<1001;i++) {
			int firstDigit=i%10;
			int secondDigit=i%100/10;
			int thirdDigit=i/100;
			if(i==Math.pow(firstDigit, 3)+Math.pow(secondDigit, 3)+Math.pow(thirdDigit, 3)) {
				System.out.println(i);
			}
		}
	}
}
